import Vue from 'vue'
import App from './App.vue'
import router from './router'

Vue.config.productionTip = false
import { registerMicroApps, start } from 'qiankun';
registerMicroApps([
  {
    name: 'react-app', // app name registered
    entry: process.env.VUE_APP_REACT_ENTRY,
    container: '#container',
    activeRule: '/react-app',
  },
  {
    name: 'vue-app',
    entry:  process.env.VUE_APP_VUE2_ENTRY,
    container: '#container',
    activeRule: '/vue-app',
  },
]);

start();
new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
